//
// Created by Administrator on 2025/9/3.
//


#include <string>
#include <map>
#include <iostream>
#include <set>

int main()
{
    std::map< std::string, size_t> word_count; // empty
    // list initialization
    std::set<std::string> exclude = {"the", "but", "and", "or", "an", "a",
    "The", "But", "And", "Or", "An", "A"};
    // three elements; authors maps last name to first
    std::map<std::string, std::string> authors = { {"Joyce", "James"},
    {"Austen", "Jane"},
    {"Dickens", "Charles"} };

    for (const auto &name: authors)
    {
        std::cout << name.first << " " << name.second << std::endl;
    }
    std::cout << std::endl;

    for (const auto &word: exclude)
    {
        std::cout << word << " ";
    }
    std::cout << std::endl;

    for (const auto& w: word_count)
    {
        std::cout << w.first << " " << w.second << std::endl;
    }
}
